package screen.component
{
	import flash.display.MovieClip;
	import flash.events.MouseEvent;
	import flash.net.navigateToURL;
	import flash.net.URLRequest;
	
	import helper.ValueObject;
	
	import screen.TechComBankScreen;

	public class ExitGame extends Popup
	{
		private var _tech_com_bank_screen:TechComBankScreen;
		public function ExitGame()
		{
			init();
		}
		private function init():void{
			_tech_com_bank_screen = TechComBankScreen.getInstance();
			_popup = ValueObject.T1_RESOURCE.getExportedAsset("exitGame") as MovieClip;
			buttonImageInit(_popup.playBtn);
			MovieClip(_popup.playBtn).addEventListener(MouseEvent.CLICK,_tech_com_bank_screen.playBtnHandle);
			buttonImageInit(_popup.exitBtn);
			MovieClip(_popup.exitBtn).addEventListener(MouseEvent.CLICK,exitGame);
			popupInit(_popup);
		}
		private function exitGame(e:MouseEvent):void {
			navigateToURL(new URLRequest("http://quetthegiangsinh.com/"),"_parent");
		}
	}
}